package com.yonghui;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
public class Student {

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;


//    @Override
//    protected void finalize() throws Throwable {
//        super.finalize();
//        log.info("调用了当前对象的finalize()");
//    }
}
